package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.WwCustomerWhitelist;
import com.xjscrm.console.param.list.WwCustomerListQuery;
import com.xjscrm.console.vo.WwCustomerWhiteVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WhiteListMapper {
    int addwwCustomerWhitelist(WwCustomerWhitelist wwCustomerWhitelist);

    List<WwCustomerWhiteVo> getWhiteList(WwCustomerListQuery wwCustomerListQuery);

    WwCustomerWhitelist getById(@Param("id") Long id, @Param("merId") Long merId);

    int deleById(@Param("id") Long id, @Param("merId") Long merId);

    int countWithWxId(@Param("merId") Long merId, @Param("wxId") String wxId);

    List<String> selectListOfWxIdByWxIds(@Param("merId") Long merId, @Param("wxIds") List<String> wxIds);
}
